﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using KhaoSatSinhVienTotNghiep.Web;
using System.Web.Helpers;
using KhaoSatSinhVienTotNghiep.Model;

namespace KhaoSatSinhVienTotNghiep.Web.Controllers
{
    public class CauTraLoiController : Controller
    {
        //
        // GET: /CauTraLoi/

        public ActionResult Index()
        {
            var data = CauTL.GetAll();
            return View(data);
        }

        [HttpGet]
        public ActionResult ThemMoi()
        {
            return View();
        }
        [HttpGet]
        public ActionResult GetByCauHoiID(int idCauhoi)
        {
            CauTL.GetByIDCauHoi(idCauhoi);
            return RedirectToAction("Index");
        }
       

    }
}
